/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kmcsoft.goldshop.model.scm;

import com.kmcsoft.goldshop.model.master.Product;
import com.kmcsoft.goldshop.model.master.Unit;
import com.kmcsoft.emaster.entity.TrackableEntity;
import com.kmcsoft.goldshop.model.master.ProductGold;
import javax.jdo.annotations.FetchGroup;
import javax.jdo.annotations.FetchGroups;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

/**
 *
 * @author kmcsoft02
 */
@PersistenceCapable(detachable = "true", table = "SHOP_ImportGoldDetail")
@FetchGroups(value = {
    @FetchGroup(name = "detach_ImportGoldDetail_All", members = {
        @Persistent(name = "unit"),
        @Persistent(name = "product")}),
    @FetchGroup(name = "detach_ImportGoldDetail_Unit", members = {
        @Persistent(name = "unit")}),
    @FetchGroup(name = "detach_ImportGoldDetail_ProductGold", members = {
        @Persistent(name = "product")})
})
public class ImportGoldDetail extends TrackableEntity {

    @Persistent
    private Unit unit;
    @Persistent
    private double unitPrice;
    @Persistent
    private double quantity;
    @Persistent
    private double exchangeRate;
    @Persistent
    private ProductGold product;
    @Persistent
    private String note;

    public Unit getUnit() {
        return unit;
    }

    public void setUnit(Unit unit) {
        this.unit = unit;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public double getExchangeRate() {
        return exchangeRate;
    }

    public void setExchangeRate(double exchangeRate) {
        this.exchangeRate = exchangeRate;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(ProductGold product) {
        this.product = product;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public boolean equals(Object obj) {
        return this==obj;
    }
    
    
}
